<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="/layout/commonLayout.xhtml">
	<ui:define name="content">
		<h:selectManyCheckbox style="padding-top: 0px;" layout="pageDirection"
			value="#{envioMB.selectedItems}">
			<f:selectItems value="#{envioMB.grupos}" var="grupo"
				itemLabel="#{grupo.nome}" itemValue="#{grupo.id}" />
		</h:selectManyCheckbox>
		<h:selectOneListbox style="width: 100%;" size="20"
			value="#{envioMB.mensagem.id}">
			<f:selectItems value="#{envioMB.mensagens}" var="mensagem"
				itemLabel="#{mensagem.assunto} &nbsp;&nbsp;&nbsp;&nbsp; #{mensagem.data}"
				itemValue="#{mensagem.id}" />
		</h:selectOneListbox>
		<h:commandButton value="Enviar Email" action="#{envioMB.enviar}">
			<f:attribute name="next" value="envioMB.pageLoad" />
			<f:attribute name="msg" value="Envio agendado com sucesso" />
		</h:commandButton>
	</ui:define>
</ui:composition>
</html>